package com.course.delegate;

import java.util.Vector;

import com.course.bean.QueryTo;
import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.serviceI.QueryServiceI;
import com.course.serviceImpl.QueryServiveImpl;

public class QueryMgrDelegate {
	
	QueryServiceI qsi=new QueryServiveImpl();
	
	public Vector<QueryTo> getQueries() throws DataNotFoundException {
		
		return qsi.getQueries();
	}
	public Vector<QueryTo> getQueriesAt(int qid1) throws DataNotFoundException {
		return qsi.getQueriesAt(qid1);
	}
	public boolean insertQuery(QueryTo qfb) throws LoginException,
	ConnectionException {
     return qsi.insertQuery(qfb);
     }
}